package org.dtrd.modules.record.entity.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.config.system.Constant;

import java.util.Date;
import java.util.List;

/**
 * @author qr
 * @date 2022/2/24 17:57
 */
@ApiModel("血糖折线图数据")
@Getter
@Setter
public class SugarValueLineData {

    @ApiModelProperty(value = "日期")
    private List<String> dates;

    @ApiModelProperty(value = "血糖值")
    private List<String> sugarValues;

    @ApiModelProperty(value = "患者id")
    private Integer patientId;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = Constant.TIME_PATTERN_SDF, timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = Constant.TIME_PATTERN_SDF, timezone = "GMT+8")
    private Date endTime;

    public SugarValueLineData(Integer patientId, Date startTime, Date endTime){
        this.patientId = patientId;
        this.startTime = startTime;
        this.endTime = endTime;
    }
}
